package homework.homework04;

public class Teacher extends Student{
    //有参构造
    public Teacher(String name, int age, String content) {
        super(name, age, content);
    }
    //无参构造
    public Teacher() {
    }

    public void eat() {
        System.out.println("年龄为" + super.getAge() + "的" + super.getName() + "老师正在吃饭");
    }
    public void study(){
        System.out.println("年龄为" + super.getAge() + "的" + super.getName() + "老师正在亢奋的讲着"+super.getContent()+"的知识");
    }
}
